﻿using System;

class PrintHelloWorld
{
    static void Main()
    {
        string var1 = "Hello";
        string var2 = "World";
        object varObj = var1 + " " + var2;
        Console.WriteLine("Concatenating strings: {0}", varObj);
        string var3 = (string)varObj;
        Console.WriteLine("With type casting from object to string: {0}", var3); 
    }
}
